<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>filter</title>
</head>
<body>
	<h1>filter</h1>
</body>
<script type="text/javascript">
    const ary = [false,3, 4, 5, 2, 3, undefined, null, 0, ""];

    const aryFilter = ary.filter((item)=>Boolean(item))//返回全部满足条件的数据，返回的是一个数组

    console.log('aryFilter',aryFilter)    
</script>
</html>